import request from '@/utils/request'

// 创建账户使用记录
export function createSeekUserAccountHistory(data) {
  return request({
    url: '/car/seek-user-account-history/create',
    method: 'post',
    data: data
  })
}

// 更新账户使用记录
export function updateSeekUserAccountHistory(data) {
  return request({
    url: '/car/seek-user-account-history/update',
    method: 'put',
    data: data
  })
}

// 删除账户使用记录
export function deleteSeekUserAccountHistory(id) {
  return request({
    url: '/car/seek-user-account-history/delete?id=' + id,
    method: 'delete'
  })
}

// 获得账户使用记录
export function getSeekUserAccountHistory(id) {
  return request({
    url: '/car/seek-user-account-history/get?id=' + id,
    method: 'get'
  })
}

// 获得账户使用记录分页
export function getSeekUserAccountHistoryPage(query) {
  return request({
    url: '/car/seek-user-account-history/page',
    method: 'get',
    params: query
  })
}

// 导出账户使用记录 Excel
export function exportSeekUserAccountHistoryExcel(query) {
  return request({
    url: '/car/seek-user-account-history/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
